<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../../include/admincontent.jsp" %>
<div id="Content">
    <form id="modelform" method="post" action="/Do/SZ/RecommendPostAction">
        <input type="hidden" name="pid" value="${pid}"/>
        <input type="hidden" name="fid" value="${fid}"/>
        <input type="hidden" name="deptcode" value="${deptcode}"/>
        ${ids}
        <table class="treeTable searchform">
            <thead>
            <tr>
                <td width="75">推荐到岗位：</td>
                <td width="200">
                    <div>
                        <select name="gwcode" datatype="*" nullmsg="请选择推荐到的岗位">
                            <option value="">请选择</option>
                            ${jobs}
                        </select>
                        <input type="hidden" name="gwname" datatype="*" nullmsg="请选择推荐到的岗位"/>
                    </div>
                </td>
                <td width="80">
                    <button type="submit" class="op">立即推荐</button>
                </td>
                <td></td>
            </tr>
            </thead>
        </table>
    </form>
    <table class="treeTable" style="margin-top:5px;">
        <thead>
        <tr>
            <td width="80">简历编号</td>
            <td width="120">应聘职位</td>
            <td width="80">姓名</td>
            <td width="60">性别</td>
            <td>证件号码</td>
        </tr>
        </thead>
        <tbody>${rs}</tbody>
    </table>
</div>
<script>
    $(function () {
        $('select[name=gwcode]').change(function () {
            $('input[name=gwname]').val($('select[name=gwcode]').find("option:selected").text());
        });
    });
</script>

</body>
</html>